package com.yelobblog.yelobblog.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//CREATE TABLE IF NOT EXISTS dialogue (
//        id INT AUTO_INCREMENT PRIMARY KEY,
//        content TEXT NOT NULL,
//        userId INT NOT NULL,
//        groupId INT NOT NULL,
//        createTime TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
//        FOREIGN KEY (userId) REFERENCES user(id) ON DELETE CASCADE,
//FOREIGN KEY (groupId) REFERENCES dialogueGroup(id) ON DELETE CASCADE
//) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class dialogue {
    private Integer id;
    private String content;
    private Integer userId;
    private Integer groupId;
    private Date createTime;
}
